package com.cn.qtms.service;//类注释设置模板

import com.cn.qtms.base.service.BaseService;
import com.cn.qtms.entity.TmSecGoods;
import com.cn.qtms.entity.TmSecKill;
import com.cn.qtms.vo.SecKillVo;

/**
 * @Name:TmOrderService
 * @Description:
 * @Author: zhangyang
 * @Date 2019-12-25 19:22
 **/

public interface TmSecKillService extends BaseService<TmSecKill,Long> {
    /**
     * 定时任务执行:每天早上获取今日需要秒杀的所有商品，进行业务订单扣减
     */
    void createSecKills();

    /**
     * 执行秒杀
     * @param vo
     * @return
     */
    SecKillVo excuteSecKill(SecKillVo vo);

}
